<!DOCTYPE html>
<html>
<head>
    <meta name="Generator" content="www.liwuyou.com "/>
    <meta charset="utf-8"/>
    <meta name="author" content="zhaoyulong"/>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title> @yield('title') </title>
    <!--[if lt IE 8]>
    <script>
        setTimeout(function () {
            window.location.href = '/upgrade.html';
        }, 10);

    </script>
    <![endif]-->

    <meta name="Keywords" content=" "/>
    <meta name="Description" content=" "/>
    <link type="text/css" rel="stylesheet" href="/home/css/base.css"/>
    <link type="text/css" rel="stylesheet" href="/home/css/style.css"/>
    <link type="text/css" rel="stylesheet" href="/home/css/idialog.css"/>
    <script src="/home/js/jquery.js"></script>
</head>
<body>
<div class="header">
    <div class="center">
        <div class="logo icon-bgr icon-logo ani-bg fl m-t-17">
            <a href="/">礼无忧首页</a>
        </div>
        <div class="category tc fl" id="category">
            <a href="#" class="f16 lh2">礼物分类<i class="icon-bgr icon-list m-l-5"></i></a>
            <div id="category_pop" class="category-pop tc dn">
                @foreach($categorys as $category)
                    <a href="/category/{{$category['id']}}">{{$category['name']}}</a>
                @endforeach
                <a class="last">&nbsp;</a>
            </div>
        </div>


        <div class="operate fr m-t-31 rel" id="user_operate">
            <a href="" id="nav_user"><i class="icon-bgr icon-user m-7 ani-bg"></i></a>
            <a href="/cart" class="m-l-5" id="nav_cart"><i class="icon-bgr icon-cart ani-bg"></i><span
                        class="cart-count" id="cart_count">{{(new \App\lib\Cart)->getTotalNums()}}</span></a>
            <div class="user-box user-signin dn" id="nav_user_box">
                <i class="icon-bgr icon-operate"></i>
                <dl class="tc">

                    <dd class="lh2">
                        <a href="/orderlist">我的订单</a>
                    </dd>

                    @if(!session('user'))
                        <dt class="f-b28850">
                            <a class="f-b28850" href="/login">登录</a> /
                            <a class="f-b28850" href="/register">注册</a>
                        </dt>
                    @else
                        欢迎您:{{session('user.tel')}}
                        <br>
                        <a href="/loginout">退出</a>
                    @endif

                </dl>
            </div>
            <div class="user-box user-cart dn" id="nav_cart_box">
                <i class="icon-bgr icon-operate"></i>
                <table class="f12">
                    <tbody>
                    <tr>
                        <td colspan="3">
                            <div class="clear m-t-10">
                                <span class="fl">共计{{(new \App\lib\Cart)->getTotalNums()}}件商品<br/><b>合计：<span
                                                class="f-d93732">{{(new \App\lib\Cart)->getTotalPrice()}}</span>元</b></span>
                                <a href="/cart" class="fr btn-red-sml ani-bg">去购物车结算</a>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>

    </div>
</div>
<div class="query-box query-box-nav dn" id="gift_guide_box">
    <div class="center">
        <div class="clear">


        </div>
        <div class="btnbox">
            <a href="javascript:void(0)" class="f12 btn-red-sml ani-bg navigation-search">搜索</a>
        </div>
    </div>
</div>

{{--内容--}}
@yield('content')

<div class="footer">
    <div class="top">
        <div class="center clear">
            <div class="top-box1 fl">
                <i class="icon-bgr icon-logo-bt fl m-r-60 m-l-20"></i>
            </div>
            <div class="top-box2 fl">
                <img src="/home/picture/slogan.png"/>
            </div>
            <div class="top-box3 fl">
                <p class="fb f16">关注我们</p>
                <p class="m-t-10"><a href="http://weibo.com/liwuyou" target="_blank" class="icon-bgr icon-sina"></a> <a
                            href="http://t.qq.com/liwuyou4006112156" target="_blank"
                            class="icon-bgr icon-tencent m-l-10"></a> <a href="javascript:void(0)" target="_blank"
                                                                         class="icon-bgr icon-wechat m-l-10 rel"><span
                                class="dn pic-wx"></span></a></p>
            </div>
            <div class="top-box4 fl tc">
                <p class="f24 lh1 fb">0755-86380505</p>
                <p class="f12">周一至周日 8:00-24:00</p>
                <a href="http://crm2.qq.com/page/portalpage/wpa.php?uin=779635593&amp;&amp;ref=&amp;f=1&amp;ty=1&amp;ap=&amp;as="
                   class="qqbtn lh1 m-t-10 dib">QQ在线交谈</a>
            </div>
        </div>
    </div>
    <div class="bottom clear f-e7e7e7">
        <ul class="center clear icons f18 fb">
            <li class="fl fst"><i class="icon-bgr1 icon-ft1 m-r-16"></i>30天免费退换货</li>
            <li class="fl"><i class="icon-bgr1 icon-ft2 m-r-16"></i>100%正品保证</li>
            <li class="fl"><i class="icon-bgr1 icon-ft3 m-r-16"></i>全场免运费</li>
            <li class="fl"><i class="icon-bgr1 icon-ft4 m-r-16"></i>提供礼品级包装</li>
        </ul>
        <div class="center links clear">
            <div class="fl">
                <p class="f-c3c3c3"><span class="m-r-16">&copy; liwuyou.com</span><span><a
                                href="http://www.miitbeian.gov.cn/" rel="nofollow" target="_blank">粤ICP备10222238号-1</a></span>
                </p>
            </div>
            <div class="fr">
                <p class="f-f5f5f5 f0"><a href="article.php?id=5" target="_blank"
                                          class="f-f5f5f5">关于我们</a><span>|</span> <a href="article.php?id=85"
                                                                                     target="_blank" class="f-f5f5f5">帮助中心</a><span>|</span>
                    <a href="article.php?id=44" target="_blank" class="f-f5f5f5">人才招聘</a><span>|</span> <a
                            href="article.php?id=82" target="_blank" class="f-f5f5f5">售后服务</a><span>|</span> <a
                            href="article.php?id=76" target="_blank" class="f-f5f5f5">配送与验收</a><span>|</span> <a
                            href="article.php?id=4" target="_blank" class="f-f5f5f5">联系我们</a>
                    <!-- <span>|</span> -->
                    <!-- <a href="javascript:void(0)" target="_blank" class="f-f5f5f5">投诉建议</a></p> --> </p>
            </div>
        </div>
    </div>
</div>
<script>
    var _hmt = _hmt || [];
    (function () {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?2e66c26c9d62324132291faf1862cfa5";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>

<div class="toolbars tc" id="back_to_top">
    <a href="http://crm2.qq.com/page/portalpage/wpa.php?uin=4006112156&amp;cref=http://www.liwuyou.com/&amp;ref=&amp;f=1&amp;ty=1&amp;ap=&amp;as="
       target="_blank" class="ani-bg"><i class="icon-bgr icon-qq"></i></a>
    <a href="javascript:void(0)" class="ani-bg m-t-10"><i class="icon-bgr icon-totop"></i></a>
</div>
<script src="/home/js/common.js"></script>
<script>
    (function ($) {
        var $window = $(window), $totop = $("#back_to_top");
        $window.scroll(function () {
            winTop();
        });

        function winTop() {
            if ($window.scrollTop() < 100) {
                $totop.stop().fadeOut(300);
            } else {
                $totop.stop().fadeIn(300);
            }
        }

        winTop();
    })(jQuery);
    $(".slider").slider({animate_type: "fade"});
</script>

</body>
</html>